package com.hxs.hxsserver.exception;

import com.hxs.hxsserver.domain.dto.ResponseCode;
import lombok.Data;

import java.io.Serializable;

/**
 * @description: Api异常
 * @author: Andi
 * @create: 2020-07-14 15:51
 */
@Data
public class BusinessException extends RuntimeException implements Serializable {
    private static final long serialVersionUID = -5779724621490591666L;
    private ResponseCode responseCode;

    public BusinessException(ResponseCode responseCode) {
        super(String.valueOf(responseCode));
    }
}
